import request from "@/utils/request.js";

export default {
  //字典
  dicts(data) {
    return request.request({
      url: `/admin/system/dict_noauth`,
      method: 'post',
      data
    })
  },

  //查询订单
  payQuery(data) {
    return request.request({
      url: `/wx_basic_interface/pay_query_noauth`,
      method: 'post',
      data
    })
  },


  //获取微信sdk config
  wxSdkConfig(data) {
    return request.request({
      url: `/wx_basic_interface/js_sdk_config_noauth`,
      method: 'post',
      data
    })
  },

  //获取企业抬头
  autoMatchCompany(data) {
    return request.request({
      url: `/uni/invoice/autoMatchCompany_noauth`,
      method: 'post',
      data
    })
  },

  //申请开票
  applyInvoice(data) {
    return request.request({
      url: `/uni/invoice/applyInvoice_noauth`,
      method: 'post',
      data
    })
  },

  //查询开票 
  queryOrder(data) {
    return request.request({
      url: `/uni/invoice/queryOrder_noauth`,
      method: 'post',
      data
    })
  },

  //字典查询 
  getDict(data) {
    return request.request({
      url: `/admin/system/dict_noauth`,
      method: 'post',
      data
    })
  },

  //官网首页基础信息配置
  webHome(data) {
    return request.request({
      url: `/admin/web/home_noauth`,
      method: 'post',
      data
    })
  },

  //课程中心
  webCourse(data) {
    return request.request({
      url: `/admin/web/course_noauth`,
      method: 'post',
      data
    })
  },

  //获取课程分类
  getCurriculum(data) {
    return request.request({
      url: `/admin/web/curriculum_noauth`,
      method: 'post',
      data
    })
  },

  //微信登录
  wxLogin(data) {
    return request.request({
      url: `/web/wxLogin_noauth`,
      method: 'post',
      data
    })
  },

  //验证码
  sendSms(data) {
    return request.request({
      url: `/web/sms_send`,
      method: 'post',
      data
    })
  },

  //绑定手机号
  smsLogin(data) {
    return request.request({
      url: `/web/sms_login`,
      method: 'post',
      data
    })
  },

  //获取用户信息
  getUserInfo(data) {
    return request.request({
      url: `/web/get_user_info`,
      method: 'post',
      data
    })
  },


  //课程提交课程校验身份证和手机号
  sendCurriculumInfoCheck(data) {
    return request.request({
      url: `/web/send_curriculum_info_check`,
      method: 'post',
      data
    })
  },

  //提交订单
  createOrder(data) {
    return request.request({
      url: `/web/create_wepay_order`,
      method: 'post',
      data
    })
  },

  //提交免费订单
  createFreeOrder(data) {
    return request.request({
      url: `/web/create_free_order`,
      method: 'post',
      data
    })
  },

  //小程序的微信登录
  mapWeiXinGetToken(data) {
    return request.request({
      url: `/uni/mapWeiXin/login_noauth`,
      method: 'post',
      data
    })
  },

  //小程序手机号
  authUserMobile(data) {
    return request.request({
      url: `/uni/mapWeiXin/get_phone_number`,
      method: 'post',
      data
    })
  },

  //订单管理
  orderAction(data) {
    return request.request({
      url: `/web/order`,
      method: 'post',
      data
    })
  },

  //查询资讯 
  realInfo(data) {
    return request.request({
      url: `/web/realInfo_noauth`,
      method: "post",
      data
    });
  },

  //完善用户信息
  student(data) {
    return request.request({
      url: `/admin/user/student`,
      method: "post",
      data
    });
  },

  //开票详情
  queryOrderDetail(data) {
    return request.request({
      url: `/uni/invoice/queryOrder_noauth`,
      method: "post",
      data
    });
  },
}
